package com.scm.service;


import com.scm.dao.SoMainMapper;
import com.scm.pojo.SoItem;
import com.scm.pojo.SoMain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SoMainService
 * @Description TODO
 * @Author Xu
 * @Date 2021/7/14 14:31
 * @Version 1.0
 **/
@Service
public class SoMainService implements SoMainMapper {

    @Autowired
    private SoMainMapper soMainMapper;
    @Override
    public void addSoMain(SoMain soMain) {
        soMainMapper.addSoMain(soMain);
    }

    @Override
    public void addItem(SoItem soItem) {
        soMainMapper.addItem(soItem);
    }

    @Override
    public String getSoNum(String productCode) {
        return soMainMapper.getSoNum(productCode);
    }

    @Override
    public List<SoMain> getPageSoMain(Map<String, Object> map) {
        return soMainMapper.getPageSoMain(map);
    }

    @Override
    public int count() {
        return soMainMapper.count();
    }

    @Override
    public SoMain getSoMain(String soID) {
        return soMainMapper.getSoMain(soID);
    }

    @Override
    public void updateSoMain(SoMain soMain) {
        soMainMapper.updateSoMain(soMain);
    }

    @Override
    public List<SoMain> getLikeSoMain(Map<String,Object> map) {
        return soMainMapper.getLikeSoMain(map);
    }

    @Override
    public List<SoMain> getStorageSoMain(Map<String ,Object> map) {
        return soMainMapper.getStorageSoMain(map);
    }

    @Override
    public int getCountStorageSoMain() {
        return soMainMapper.getCountStorageSoMain();
    }

    @Override
    public void outStorage(String soID) {
        soMainMapper.outStorage(soID);
    }

    @Override
    public List<SoMain> getSoMain1(Map<String, Object> map) {
        return soMainMapper.getSoMain1(map);
    }

    @Override
    public List<SoMain> getSoMain2(Map<String, Object> map) {
        return soMainMapper.getSoMain2(map);
    }

    @Override
    public List<SoMain> getSoMain3(Map<String, Object> map) {
        return soMainMapper.getSoMain3(map);
    }

    @Override
    public int count1() {
        return soMainMapper.count1();
    }

    @Override
    public int count2() {
        return soMainMapper.count2();
    }

    @Override
    public int count3() {
        return soMainMapper.count3();
    }

    @Override
    public void proceeds(String soID) {
        soMainMapper.proceeds(soID);
    }

    @Override
    public void preProceeds(String soID) {
        soMainMapper.preProceeds(soID);
    }

    @Override
    public List<SoMain> endSoMain(Map<String, Object> map) {
        return soMainMapper.endSoMain(map);
    }

    @Override
    public int endCountSoMain(Map<String, Object> map) {
        return soMainMapper.endCountSoMain(map);
    }

    @Override
    public void realEndSoMain(String soID) {
        soMainMapper.realEndSoMain(soID);
    }

    @Override
    public int getCountLikeSoMain(Map<String, Object> map) {
        return soMainMapper.getCountLikeSoMain(map);
    }

    @Override
    public List<SoMain> getMonthSoMain(Map<String, Object> map) {
        return soMainMapper.getMonthSoMain(map);
    }

    @Override
    public List<SoMain> getCountMonthSoMain(Map<String, Object> map) {
        return soMainMapper.getCountMonthSoMain(map);
    }
}
